#ifndef FUNCTIONS_H
#define FUNCTIONS_H
// normal includes
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <malloc.h>
#include <math.h>
// SDL includes
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_rotozoom.h>
#include <SDL/SDL_draw.h>

extern SDL_Surface *screen;
extern TTF_Font *font;
extern TTF_Font *menu_font;
extern SDL_Surface *text_surface;
extern SDL_Color fcolor;

void InitSDL();
void free_surface(SDL_Surface* surf);
void flip_surface(SDL_Surface* surf);
void apply_surface(int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip);
void fontPrintf(int x, int y, const char *format, ...);
void fontPrintf_s(SDL_Surface *surf, int x, int y, const char *format, ...);

#endif